package com.b2bpsssm.simulate;/**
 * @author JunYu
 * @create 2022-08-13--19:06
 */

import com.b2bpsssm.pojo.SysUser;

import java.util.ArrayList;
import java.util.List;

/**
 * @program: B2BPSSMSystem
 *
 * @description: 生成测试用Sysuser
 *
 * @author: JunYu
 *
 * @create: 2022-08-13 19:06
 **/

public class GenerateSysUsers {
    //生成测试用的员工list
    public static List<SysUser> generateSysUserList(int pageSize){
        List<SysUser> sysUserList = new ArrayList<>();
        SysUser sysUser = new SysUser();
        sysUser.setUser_email("132456789@qq.com");
        sysUser.setUser_name("测试数据");
        sysUser.setId(1);
        sysUser.setPhone_number("123456789");
        sysUser.setPassword("123456");
        sysUser.setRole_id(1);
        sysUser.setSto_id(1);
        for(int i = 0;i<pageSize;i++)
        {
            sysUser.setId(i);
            sysUserList.add(sysUser);
        }
        return sysUserList;
    }
    //生成测试用的员工对象
    public static SysUser generateSysUser(){
        SysUser sysUser = new SysUser();
        sysUser.setUser_email("132456789@qq.com");
        sysUser.setUser_name("测试数据");
        sysUser.setId(1);
        sysUser.setPhone_number("123456789");
        sysUser.setPassword("123456");
        sysUser.setRole_id(1);
        sysUser.setSto_id(1);
        return sysUser;
    }
}
